﻿using Basefr.Attributes;
using Basefr.Core.Entities;
using System.ComponentModel.DataAnnotations.Schema;

namespace Paas.Core.Common.Entities
{
    /// <summary>
    /// 系统公告附件
    /// </summary>
    [MainTable(nameof(AnnouncementAttach))]
    public class AnnouncementAttach : EntityBase
    {
        /// <summary>
        /// 公告
        /// </summary>
        public int AnnouncementId { get; set; }
        [ForeignKey(nameof(AnnouncementId))]
        public virtual Announcement Announcement { get; set; }

        /// <summary>
        /// 附件文件
        /// </summary>
        public int FileId { get; set; }
        [ForeignKey(nameof(FileId))]
        public virtual File File { get; set; }
    }
}

